package com.menchao.carsales.dao;

import com.menchao.carsales.pojo.Employee;
import com.menchao.carsales.vo.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Porject: carsales
 * Date: 2021/7/13
 * Author: menchao
 * Description:
 */

public interface EmployeeMapper {
    //检查用户
    int checkUserId(Integer id);

    //登录
    Employee selectLogin(@Param("id") Integer id, @Param("password") String password);

    //插入
    int insert(Employee record);


    //查询
    List<Employee> selectSelective(EmployeeQuery employeeQuery);


    //更新雇员信息
    int updateByPrimaryKeySelective(Employee record);

    //删除雇员信息
    int delete(Employee record);

}
